package cn.dcw.pethome.basic.util;

import lombok.Data;

/**
 * 返回前端页面的结果对象
 */
@Data
public class AjaxResult {
    private Boolean success=true;//成功为true
    private String msg;
    private Object resultObj;//返回结果对象

    public AjaxResult() {
    }

    public AjaxResult(Boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public AjaxResult(Boolean success, String msg, Object resultObj) {
        this.success = success;
        this.msg = msg;
        this.resultObj = resultObj;
    }

    public void setResultObj(Object resultObj) {
        this.resultObj = resultObj;
    }
}
